package no.ntnu.fp.su;

/**
 * LogFilter enum
 * 
 * @author abs
 * 
 */
public enum Filter {
	ALL, RED, GREEN, YELLOW;
/**
 * convert from Status enum to Filter enum
 * 
 * @param {@link Status}
 * @return
 * {@link Filter}
 */
	public static Filter valueOf(Status status) {
		Filter f = Filter.valueOf(status.toString());
		return (f==null)?ALL:f;
	}
}
